package com.zhang.utils;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;


@Data

@NoArgsConstructor
public class PageResult<T> implements Serializable {
	private long total;         // 总记录数
	private List<T> rows;       // 每页记录集合

	public PageResult(long total, List<T> rows) {
		this.total = total;
		this.rows = rows;
	}
}
